
export default {
    state: {
        //导航选择器
        activeIndex: 1,
        //搜索关键词
        searchKeyword: '',
        //导航
        naveCatch:[],
    },
    mutations: {
        setActiveIndex: (state:any,key:any) =>{
            state.activeIndex = key
        },
        setSearchKeyword: (state:any,key:any) =>{
            state.searchKeyword = key
        },
        setNaveCatch: (state:any,key:any) =>{
            state.naveCatch = key
        },
    },
    actions: {
        setActiveIndex(content:any, key:any) {
            content.commit('setActiveIndex', key);
        },
        setSearchKeyword(content:any, key:any) {
            content.commit('setSearchKeyword', key);
        },
        setNaveCatch(content:any, key:any) {
            content.commit('setNaveCatch', key);
        },
    },
    modules: {
    }
}
